package com.jiawa.wiki.controller;

import com.jiawa.wiki.domain.Demo;
import com.jiawa.wiki.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Argus
 * @className TestController
 * @description: TODO
 * @date 2025-06-12 11:43
 * @Version V1.0
 */
@RestController
//@Controller 返回一个页面
public class DemoController {

    @Autowired
    private DemoService demoService;


    @GetMapping("/demo/list")
    public List<Demo> list () {
        return demoService.getDemoList();
    }
}